package com.mmche.web.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mmche.sell.dao.SellOrderDao;
import com.mmche.sell.pojo.SellOrder;
import com.mmche.sell.service.SellOrderService;
import com.mmche.sell.service.impl.SellOrderServiceImpl;

@Service("webSellOrderService")
public class WebSellOrderService extends SellOrderServiceImpl implements SellOrderService {

	
	@Resource(name="webSellOrderDao")
	private SellOrderDao sellOrderDao;
	
	@Override
	public List<SellOrder> getSaledOrderPageByMap(int limit) {
		return this.sellOrderDao.getSaledPage(limit);
	}

	@Override
	public int getSaledOrderCount() {
		return this.sellOrderDao.getSaledCount();
	}

	@Override
	public List<SellOrder> getSaledOrderPage(int start, int limit) {
		return this.sellOrderDao.getSaledPage(start,limit);
	}
	
	@Override
	public SellOrder getSellOrderByOrderId(String id){
		return this.sellOrderDao.getByOrderId(id);
	}
}
